import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import mutations from './mutations.js'
import getters from './getters.js'
import actions from './actions.js'

const state = {
    curPath: document.location.pathname,
    curUserId: 1,
    curUser: String,
    nowTime: "",
    isAddFormShow: true,
    token: String,
    alarmRecordList: [],
    alarmRecordListSave: [],
    statusOptionValue: [{
            value: "Open",
            label: "Open",
        },
        {
            value: "Pending",
            label: "Pending",
        },
        {
            value: "Closed",
            label: "Closed",
        },
    ],
    value: "",
}

const store = new Vuex.Store({
    state,
    mutations,
    getters,
    actions,
})

export default store